package com.bm.controller;

import com.bm.server.serverImpl.ClassificationOfQueryImpl;
import com.google.gson.Gson;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: sx
 * Date: 2022/2/14
 * Time: 12:49
 * Description: java
 */
@RestController
public class ClassificationOfQueryController {

    @Resource
    ClassificationOfQueryImpl classificationOfQuery;


    @RequestMapping(value = "/getClassify", method = RequestMethod.POST)
    @ResponseBody
    @CrossOrigin
    public String getClassify(@RequestParam(name = "query")String query, @RequestParam(name = "label")String label, @RequestParam(name = "name")String name){
        String sortNodeAndRelation = classificationOfQuery.getSortNodeAndRelation(query, label, name);
        return sortNodeAndRelation;
    }
}
